set more off
capture log close
cd *** Fill in path name here ***

//  program:    AnanatEtAl_suicidality results
//  task:		Regressions of suicidal ideation on job loss -- without weighting (does not adjust for complex survey sampling design
// 				Included for completeness only

log using *** Fill in file name here ***, replace text

// Run this sensitivity check for black youth only 

// #1
// Load data
use AnanatEtAl_suicidality_data.dta, clear

keep if black == 1

// #2
// Run IV-probit regressions, black youth only

svy: ivprobit suicthtly (seppctyrlag = ticpctyrlag) age female yrd* std*
margins, dydx (seppctyrlag) predict (pr)

clear

log close
